import request from '@/utils/request'
import qs from 'qs'

/**@监控设备列表**/
export function trackList(query) {
  return request({
    url: '/tracker/trackList?'+ qs.stringify(query),
    method: 'post'

  })
}

/**@监控查询设备**/
export function findTrackerPuzzy(params) {
  return request({
    url: '/tracker/findTrackerPuzzy',
    method: 'get',
    params
  })
}

/**@轨迹查询**/
export function getTrack(query) {
  return request({
    url: '/tracker/getMapPoints?'+ qs.stringify(query),
    method: 'get'
  })
}

/**@设备详情**/
export function getDetails(params) {
  return request({
    url: '/tracker/trackDetail',
    method: 'get',
    params
  })
}


export function findThermoChartData(params) {
  return request({
    url: '/tracker/findThermoChartData',
    method: 'get',
    params
  })
}


/** @监控设备列表**/
export function queryTrackerGroupList(params) {
  return request({
    url: '/tracker/queryTrackerGroupList',
    method: 'get',
    params
  })
}
